/*******************************************************************************
 * Copyright (c) 2008 meihuichina.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/

package org.langqiao.exception;

/**
 * 
 */
public class FinallyTest {
	
	/*public static void main(String[] args) {
		System.out.println(new FinallyTest().test());;
	}*/

	static int test() {
		int x = 1;
		try {
			//x++;
			return x++;
		} finally {
			return ++x;
			//System.out.println("ddddddddd");
			//++x;
		}
		//int y = x ++;
		//int y = ++x;
		//return y;
	}
	

	public static void test(boolean test) {
		test = !test;
		System.out.println("In test(boolean) : test = " + test);
	}

	public static void main(String[] args) {
		boolean test = true;
		System.out.println("Before test(boolean) : test = " + test);
		test(test);
		System.out.println("After test(boolean) : test = " + test);
	}

}